package com.easyctba.core.domain.bo;

import com.easyctba.common.core.validate.AddGroup;
import com.easyctba.common.core.validate.EditGroup;
import com.easyctba.common.mybatis.core.domain.BaseEntity;
import com.easyctba.core.domain.CtbaProject;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CtbaProject.class, reverseConvertGenerate = false)
public class FrontProjectBo extends BaseEntity {
    /**
     * 项目名
     */
    @NotBlank(message = "项目名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectName;

    /**
     * 项目类型
     */
    @NotBlank(message = "项目类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectType;
}
